<template>
  <div>
    <zm-dialog
      title="批量设置"
      :visible.sync="value"
      append-to-body
      :before-close="dialogClose"
      :close-on-click-modal="false"
      :keep-alive="true"
      size="mini"
    >
    <zm-form :model="form">
      <zm-form-item label="补差价格">
        <zm-input type="number" class="w120" v-model="form.price"></zm-input>
      </zm-form-item>
    </zm-form>
      <div slot="footer" class="tr">
        <el-button @click="dialogClose" type="info">取消</el-button>
        <el-button @click="onSave" type="primary">保存</el-button>
      </div>
    </zm-dialog>
  </div>
</template>
<script>
import dialogMixin from '@/mixins/dialogMixin'
export default {
  name: 'SetAll',
  components: {},
  mixins: [dialogMixin],
  props: {

  },
  data () {
    return {
      form: {
        price: ''
      }
    }
  },
  computed: {},
  watch: {},
  created () {},
  methods: {
    onSave () {
      this.$emit('handle-after', this.form.price)
      this.dialogClose()
    }
  }
}
</script>
<style scoped lang='scss'>
</style>
